package com.ofd.sign.utils;


import com.ofd.sign.exception.AuthException;
import com.ofd.sign.exception.SignException;

/**
 * 用于判断抛出业务异常
 * @author wangrenjie
 */
public class AssertUtil {

    public static void authCheck(boolean check,String errorMsg) {
        if (check) {
            throw new AuthException(errorMsg);
        }
    }
    public static void check(boolean check,String errorMsg) {
        if (check) {
            throw new SignException(errorMsg);
        }
    }

}
